package com.ruicar.afs.cloud.manage.api.feign.gateway;

import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.manage.api.dto.gateway.PhoneSyncToCmsDto;
import com.ruicar.afs.cloud.parameter.commom.entity.TsysAddressParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description:
 */
@FeignClient(value = "${com.ruicar.service-names.gateway-server}", contextId = "contract-gateway-call")
public interface ContractGateWayCall {

    @ApiOperation("合同信息")
    @PostMapping(value = "/getCustInfo")
    IResponse mainInfofindByContractNo(@RequestParam(value = "contractNo") String contractNo);

    @ApiOperation("更新手机号码")
    @PostMapping(value = "/updateRelation")
    IResponse updateRelationToCms(@RequestBody PhoneSyncToCmsDto dto);

    @ApiOperation("更新地址信息")
    @PostMapping(value = "/updateAddress")
    IResponse updateAddress(@RequestBody PhoneSyncToCmsDto dto);
}
